package com.weixing.mall.provider.api.fallback;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.base.wrapper.ResultUtil;
import com.weixing.mall.provider.api.model.vo.ProductStockDetailsVo;
import com.weixing.mall.provider.api.model.vo.ProductStockVo;
import com.weixing.mall.provider.api.model.vo.dto.ErpSyncDto;
import com.weixing.mall.provider.api.service.ProductStockServiceRpc;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author wx
 * @Date 2019/12/6 16:21
 * @Version 1.0
 */
@Component
public class ProductStockFallBack implements ProductStockServiceRpc {
    @Override
    public Result<Integer> getByGoodsInfo(Long depotId, Long goodsId, Long productId) {
        return null;
    }

    @Override
    public List<ProductStockVo> getAllByDepotId(Long depotId) {
        return null;
    }

    @Override
    public Result inOutStock(Long depotId, Long productId, Integer flag, Long uid,String stockSn) {
        return ResultUtil.error("服务不可用");
    }

    @Override
    public Result updateSynData(String yearMoth) {
        return ResultUtil.error("服务不可用");
    }

    @Override
    public Result delSyncErpData(Long depotId) {
        return ResultUtil.error("服务不可用");
    }

    @Override
    public Result erpSynData(ErpSyncDto erpSyncDto) {
        return ResultUtil.error("服务不可用");
    }

    @Override
    public List<ProductStockDetailsVo> getAllByDepotId2(Long depotId) {
        return null;
    }

    @Override
    public Result lockDepot(Long id) {
        return null;
    }


}
